import Mock from 'mockjs';

export function mock() {
    // 门店列表
    Mock.mock(/shop/, 'get', {
        status: 0,
        message: 'OK',
        data: [
            {
                id: 1,
                cover: 'http://www.baidu.com/cover',
                name: '北京总店',
                tag: '最火店铺',
                package_number: 123,
                is_photography: 0,
                visitor: 123,
                starting_price: 123,
                features: '店铺特征',
            },
        ],
    });

    // 门店详情
    Mock.mock(/shop\/detail/, 'get', {
        status: 0,
        message: 'OK',
        data: {
            id: 123,
            cover: 'http://www.baidu.com/cover',
            package_number: 12,
            name: '门店名',
            description: '品牌介绍',
            tag: '最火店铺',
            category: ['婚纱照', '时尚写真'],
            starting_price: 224,
            features:'店铺特征',
            video: 'http://www.baidu.com/video.mp4',
            type: '婚纱摄影',
        },
    });

    // 获取门店banner图
    Mock.mock(/shop\/banner/, 'get', {
        status: 0,
        message: 'OK',
        data: {
            id: 123,
            image: 'https://static.playground.forzoom.tech/meta/square/1.jpg',
            link_id: 2,
            url: null,
        },
    });

    // 客样精选
    Mock.mock(/shop\/banner/, 'get', {
        status: 0,
        message: 'OK',
        data: [],
    });
}
